package g11.dao;

import g11.model.Patient;

import java.sql.Date;

import org.hibernate.Session;

public interface PatientDAO {
	public Session getSession();

	public void cleanup();

	public Patient getPatientById(int patientID) throws DAOException;

	public Patient getPatientByName(String patientName) throws DAOException; // need
																				// do
																				// a
																				// join
																				// with
																				// user

	public Patient getPatientByLastVisitTime(Date LastVisitTime)
			throws DAOException;

	public Patient getPatientByOhip(String ohip) throws DAOException;

	// move getAllPatient(int doctorId) to PatientAssigmentDao
	// public List<Patient> getAllPatient(int doctorId) throws DAOException;
	public Integer createPatient(Patient patient) throws DAOException;

	public void updatePatient(Patient patient) throws DAOException;

	public void deletePatient(Patient patient) throws DAOException;
}
